<!--
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-08-31 11:02:56
 * @LastEditors: voanit
 * @LastEditTime: 2022-08-31 11:16:26
-->
<script setup>
import { inject } from 'vue'
const num = inject('n')
const appHandle = inject('appHandle')
</script>
<template>
  <div>
    御剑乘风来,除魔天地间!===vue3===children==={{ num }}
    <button @click="appHandle('我是child')">按钮====后代向根组件传值</button>
  </div>
</template>
<style lang='less'  scoped>
</style>